import request from '@/utils/request'

// 查询积分明细列表
export function listUserPointsLog(query) {
  return request({
    url: '/system/userPointsLog/list',
    method: 'get',
    params: query
  })
}

// 查询积分明细详细
export function getUserPointsLog(id) {
  return request({
    url: '/system/userPointsLog/' + id,
    method: 'get'
  })
}

// 新增积分明细
export function addUserPointsLog(data) {
  return request({
    url: '/system/userPointsLog',
    method: 'post',
    data: data
  })
}

// 修改积分明细
export function updateUserPointsLog(data) {
  return request({
    url: '/system/userPointsLog',
    method: 'put',
    data: data
  })
}

// 删除积分明细
export function delUserPointsLog(id) {
  return request({
    url: '/system/userPointsLog/' + id,
    method: 'delete'
  })
}
